Feature: create account
  As a visitor
  I want to create an account 
  So that I can make a complaint

Background:
  Given I am not logged in
  And there is a user bar
	
Scenario: Go to user bar to create an account
	Given I am on the Index page
	When I follow "Create an Account"
	Then I should be on the new account page

Scenario: Add a new account
	Given I am on the new account page
	When I fill in "First Name" with "Fnu"
	And I fill in "Middle Name" with "Benedictus"
	And I fill in "Last Name" with "Renaldi"
	And I fill in "Email" with "yahoon_manis@hotmail.com"
	And I fill in "Age" with "21"
	And I choose "Male" from the "Gender" drop down list
	And I press "Create"
	Then I should be on "Index" page
	And I should see "logged in" on the user bar

Scenario: Add a new account with error
  Given I am on the new account page
	When I fill in "First Name" with "Fnu"
	And I press "Create"
	Then I should see "Last Name can't be blank"
	Then I should see "Email can't be blank"
